package com.yuw.dz.oop2;

public class Person {

    // 属性
    private String perName;
    private String perSex;
    private int perAge;

    // 行为

    /**
     * 吃早餐行为
     *
     * @param foodName 早餐名
     */
    public void doEating(String foodName) {
        System.out.println("执行了父类的被覆盖的方法");
        System.out.println(this.perName + " is eating " + foodName);
    }

    /////////////////////////getter/setter///////////////////////
    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName;
    }

    public String getPerSex() {
        return perSex;
    }

    public void setPerSex(String perSex) {
        this.perSex = perSex;
    }

    public int getPerAge() {
        return perAge;
    }

    public void setPerAge(int perAge) {
        this.perAge = perAge;
    }
}
